package com.sys.quartz;

import com.sys.entity.SysCrontab;
import org.quartz.*;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2019/11/4/004.
 */
@Component
@PersistJobDataAfterExecution
public class TestQuartz implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        JobDataMap jobDataMap = jobExecutionContext.getTrigger().getJobDataMap();
        String sysCrontabId = jobDataMap.getString(SysCrontab.CRONTAB_ID);
        // System.out.println(sysCrontabId);
    }
}
